package com.itheima.sys.service;

import com.itheima.sys.entity.UserDomain;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class UserDominService {


    /**
     * 模拟测试保存用户记录
     * @param user
     * @return
     */
    public UserDomain saveUser(UserDomain user) {
        Random random = new Random(1000);
        user.setId(random.nextLong());
        return user;
    }
}
